package API.Collection.List.Traversal;

import java.util.ArrayList;
import java.util.List;

public class EnhancedFor {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        for(int i = 1; i <= 10; i++){
            list.add(i);
        }
        for(int i : list){
            System.out.print(i + " ");
        }
    }
}
